package com.addplus.townmall.server.api.model.town;

import com.addplus.townmall.server.api.model.base.BaseRestModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 商城礼品卡用户使用记录表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-11-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class GiftMemberCardRecord extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 商城礼品用户主键id
     */
    private Integer giftMemberCardId;

    /**
     * 商城所属用户主键id
     */
    private Integer memberId;

    /**
     * 使用商城用户主键id
     */
    private Integer useMemberId;

    /**
     * 礼品卡主键id
     */
    private Integer giftCardId;

    /**
     * 关联订单主键id
     */
    private Integer orderId;

    /**
     * 订单类型(1:普通商品 2：拼团商品)
     */
    private Integer orderType;

    /**
     * 礼品卡支付金额
     */
    private BigDecimal orderAmount;

    /**
     * 礼品卡当前面值
     */
    private BigDecimal giftValueNow;

    /**
     * 礼品卡剩余面值
     */
    private BigDecimal giftValueLeft;

    /**
     * 礼品卡使用面值
     */
    private BigDecimal giftValueUse;

    /**
     * 是否删除(0:否 1:是)
     */
    private Integer isDelete;


}
